package com.example.loginsystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Cheung0
 * Created on 2021/12/5
 */
@Controller
public class MainController {

    @GetMapping("/")
    public String indexToUser(){
        return "/user/index.html";
    }

    @GetMapping("/admin")
    public String indexToAdmin() {
        return "/admin/index.html";
    }

}
